<template>
  <!-- 面包屑的封装 -->
  <div class="wrap">
    <el-breadcrumb separator="/">
      <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item v-for="(item,index) in metaList" :key="index">{{item}}</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      metaList: []
    };
  },
  mounted() {
    this.addbread();
  },
  methods: {
    addbread() {
      this.metaList = this.$route.meta.bread;
    }
  },
  computed: {},
  components: {},
  watch: {},
  getters: {}
};
</script>

<style scoped>
.wrap {
  margin-top: 20px;
  margin-bottom: 20px;
}
</style>